package com.atguigu.yygh.hosp.client;

import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {
    /**
     * 根据排班id获取预约下单数据
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);


    /**
     * 根据mongodb的排班objectId获取mongodb的Schedule
     *
     */
    @GetMapping(value = "/api/hosp/hospital/inner/getScheduleOrderVoByScheduleId/{scheduleId}")
    public ScheduleOrderVo getScheduleOrderVoByScheduleId(@PathVariable("scheduleId") String scheduleId);
}
